Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: enable no-proto rule for linter #5140

Closed
wants to merge 1 commit into from

Conversation

JacksonTian
Copy link
Contributor

Enable no-proto in .eslintrc.

Use Object.setPrototypeOf() and Object.getPrototypeOf()
instead of.

Enable `no-proto` in `.eslintrc`.

Use `Object.setPrototypeOf()` and `Object.getPrototypeOf()`
instead of.
@evanlucas
Copy link
Contributor

@mscdex mscdex added the tools Issues and PRs related to the tools directory. label Feb 8, 2016
@Trott
Copy link
Member

Trott commented Feb 9, 2016

I'm +0 on this and happy to defer to others on whether it's worth doing or not. But since I fully expect someone might ask, "Why?", here's the answer from the ESLint doc for no-proto:

__proto__ property has been deprecated as of ECMAScript 3.1 and shouldn't be used in the code. Use getPrototypeOf method instead.

@thefourtheye
Copy link
Contributor

LGTM if CI is happy

@silverwind
Copy link
Contributor

LGTM

1 similar comment
@jasnell
Copy link
Member

jasnell commented Feb 10, 2016

LGTM

jasnell pushed a commit that referenced this pull request Feb 10, 2016
Enable `no-proto` in `.eslintrc`.

Use `Object.setPrototypeOf()` and `Object.getPrototypeOf()`
instead of.

PR-URL: #5140
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@jasnell
Copy link
Member

jasnell commented Feb 10, 2016

Landed in cc195bf

@jasnell jasnell closed this Feb 10, 2016
rvagg pushed a commit that referenced this pull request Feb 15, 2016
Enable `no-proto` in `.eslintrc`.

Use `Object.setPrototypeOf()` and `Object.getPrototypeOf()`
instead of.

PR-URL: #5140
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
Reviewed-By: James M Snell <[email protected]>
MylesBorins pushed a commit that referenced this pull request Feb 18, 2016
Enable `no-proto` in `.eslintrc`.

Use `Object.setPrototypeOf()` and `Object.getPrototypeOf()`
instead of.

PR-URL: #5140
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@JacksonTian JacksonTian deleted the no-proto branch February 18, 2016 02:14
MylesBorins pushed a commit that referenced this pull request Feb 18, 2016
Enable `no-proto` in `.eslintrc`.

Use `Object.setPrototypeOf()` and `Object.getPrototypeOf()`
instead of.

PR-URL: #5140
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@MylesBorins MylesBorins mentioned this pull request Feb 18, 2016
MylesBorins pushed a commit that referenced this pull request Mar 2, 2016
Enable `no-proto` in `.eslintrc`.

Use `Object.setPrototypeOf()` and `Object.getPrototypeOf()`
instead of.

PR-URL: #5140
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tools Issues and PRs related to the tools directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants